package com.daxilong.starchen.player.activity;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {
    protected abstract View getLayout();
    protected abstract void initView();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayout());

        //StatusBarUtil.setLightMode(this);
        initView();
        initData();

//        ImmersionBar.with(this)
//                .titleBar(setToolbar())
//                .autoDarkModeEnable(true)
//                .transparentStatusBar()
//                .statusBarDarkFont(true)
//                .init();
    }

    public void initData() {
    }

}
